//
//  CCAlert.h
//  CCKit
//
//  Created by tucici on 2019/3/18.
//  Copyright © 2019 tucici. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@interface CCAlertController : UIAlertController
@end

@interface CCAlert : NSObject

/**
 CCAlert带回调的提示
 
 @param message CCAlert的text
 @param hidden 隐藏完成，CCAlert的回调
 */
+ (void)showMessage:(NSString *)message hidden:(nullable void(^)(void))hidden;

/**
 在当前控制器viewcontroller推出一个Alert

 @param message 弹框内容
 @param title 弹框标题
 @param enter 确定按钮
 */
+ (void)showMessage:(NSString *)message title:(nullable NSString *)title enter:(nullable void(^)(void))enter;
/**
 在当前控制器viewcontroller推出一个Alert
 
 @param message 弹框内容
 @param title 弹框标题
 @param leftText 弹框左边按钮title
 @param rightText 弹框右边按钮title
 @param left 左边按钮回调
 @param right 右边按钮回调
 */
+ (void)showMessage:(NSString *)message title:(nullable NSString *)title
                leftBtnText:(nullable NSString *)leftText rightBtnText:(nullable NSString *)rightText
                  leftblock:(nullable void(^)(void))left rightBlock:(nullable void(^)(void))right;

/**
 当前控制器viewcontroller推出一个sheet

 @param message sheet 内容
 @param title sheet title
 @param sheets sheet 下列按钮的title
 @param block 按钮回调
 */
+ (void)sheet:(nullable NSString *)message title:(nullable NSString *)title sheetTitles:(nullable NSArray*)sheets block:(nullable void(^) (int index))block;
@end

NS_ASSUME_NONNULL_END
